

#ifndef ORGANIZATIONAO_STUB_4_APP_H
#define ORGANIZATIONAO_STUB_4_APP_H

#include <string>
#include "c2cent/base/basestub4app.h"
#include "app_platform/cntl_info.h"
#include "intf_organizationao.h"

namespace erp
{
namespace organization
{
namespace ao
{
	#define ORGANIZATIONAO_STUB4APP_VERSION "ERP_ORGANIZATION_AO___ORGANIZATIONAO__STUB4APP_VERSION__1.0 2013-10-23 11:04:16"
    const std::string ORGANIZATIONAO_STUB4APP_NOUSE = ORGANIZATIONAO_STUB4APP_VERSION;

	class COrganizationAoStub4App : public c2cent::CBaseStub4App, public IOrganizationAo, public IOrganizationAoAsyc
	{
	public:
		uint32_t DeleteBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const std::set<uint64_t >& branchId,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::string& outReserve
	    );
	    uint32_t SendDeleteBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const std::set<uint64_t >& branchId,
				const std::string& inReserve
	    );
	    uint32_t RecvDeleteBranch(
				const CCntlInfo& rCntlInfo,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::string& outReserve
	    );
	    
	    uint32_t RecvDeleteBranch(
		  		CCmdObj& rCmd,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::string& outReserve
	    );
	    
	    uint32_t GetDeleteBranchRespCmd(
	    );
		uint32_t FindBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::organization::po::COrganizationFilterPo& filter,
				const std::string& inReserve,
				std::string& errmsg,
				uint32_t& total,
				std::vector<erp::organization::po::CBranchPo >& branch,
				std::string& outReserve
	    );
	    uint32_t SendFindBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::organization::po::COrganizationFilterPo& filter,
				const std::string& inReserve
	    );
	    uint32_t RecvFindBranch(
				const CCntlInfo& rCntlInfo,
				std::string& errmsg,
				uint32_t& total,
				std::vector<erp::organization::po::CBranchPo >& branch,
				std::string& outReserve
	    );
	    
	    uint32_t RecvFindBranch(
		  		CCmdObj& rCmd,
				std::string& errmsg,
				uint32_t& total,
				std::vector<erp::organization::po::CBranchPo >& branch,
				std::string& outReserve
	    );
	    
	    uint32_t GetFindBranchRespCmd(
	    );
		uint32_t GetBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const std::set<uint64_t >& branchId,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::map<uint64_t,erp::organization::po::CBranchPo >& branch,
				std::string& outReserve
	    );
	    uint32_t SendGetBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const std::set<uint64_t >& branchId,
				const std::string& inReserve
	    );
	    uint32_t RecvGetBranch(
				const CCntlInfo& rCntlInfo,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::map<uint64_t,erp::organization::po::CBranchPo >& branch,
				std::string& outReserve
	    );
	    
	    uint32_t RecvGetBranch(
		  		CCmdObj& rCmd,
				std::string& errmsg,
				std::map<uint64_t,uint32_t >& errorCode,
				std::map<uint64_t,std::string >& errorMsg,
				std::map<uint64_t,erp::organization::po::CBranchPo >& branch,
				std::string& outReserve
	    );
	    
	    uint32_t GetGetBranchRespCmd(
	    );
		uint32_t ModifyBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::organization::po::CBranchPo& branch,
				const std::string& inReserve,
				std::string& errmsg,
				erp::organization::po::CBranchPo& branchBack,
				std::string& outReserve
	    );
	    uint32_t SendModifyBranch(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				uint32_t option,
				const erp::organization::po::CBranchPo& branch,
				const std::string& inReserve
	    );
	    uint32_t RecvModifyBranch(
				const CCntlInfo& rCntlInfo,
				std::string& errmsg,
				erp::organization::po::CBranchPo& branchBack,
				std::string& outReserve
	    );
	    
	    uint32_t RecvModifyBranch(
		  		CCmdObj& rCmd,
				std::string& errmsg,
				erp::organization::po::CBranchPo& branchBack,
				std::string& outReserve
	    );
	    
	    uint32_t GetModifyBranchRespCmd(
	    );
	};

}
}
}

#endif /* ORGANIZATIONAO_STUB_4_APP_H */

